<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'index.jsp' starting page</title>

<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	
	
	-->
	
	
	<script src="js/laydate.js"></script> 
	
</head>

<body>

	<!-- 2：在线注册新生(注意年级，直接用input文本框输入)，保存到数据库 -->


	<h2>学生注册：</h2>
	<form action="doReg.jsp" method="post">
		<p>
			<label>请输入姓名：</label><input type="text" name="stuname"
				placeholder="请输入姓名" />
		</p>
		<p>
			<label>请输入密码：</label><input type="password" name="pass"
				placeholder="请输入密码" />
		</p>
		<p>
			<label>性别是：</label> <input type="radio" name="sex" value="男" />男 <input
				type="radio" name="sex" value="女" />女
		</p>
		<p>
			<label>手机号码：</label><input type="text" name="tele"
				placeholder="请输入手机号码" />
		</p>

		<p>
			<label>QQ号：</label><input type="text" name="qq" placeholder="请输入QQ号" />
		</p>
		<p>
			<label>微信号：</label><input type="text" name="wechat"
				placeholder="请输入微信号" />
		</p>

		<p>
			<label>年级编号：</label><input type="text" name="grade"
				placeholder="请输入年级编号" />
		</p>

		<p>
			<label>入学日期：</label> <select name="eyear">
				<option value="2017">2017</option>
			</select> <select name="emonth">
				<option value="09">09</option>
			</select> <select name="edate">
				<option value="08">08</option>
			</select>

		</p>

		<p>
			<label>来自哪个城市：</label><input type="text" name="city"
				placeholder="请输入城市" />
		</p>

		<p>
			<label>出生日期：</label> <select name="byear">
				<option value="1990">1990</option>
			</select> <select name="bmonth">
				<option value="05">05</option>
			</select> <select name="bdate">
				<option value="09">09</option>
			</select>

		</p>

		<p>
			<label>地址：</label><input type="text" name="address"
				placeholder="请输入地址" />
		</p>

		<input type="submit" value="注册">
	</form>

</body>
</html>
